package org.ainlolcat.ainscience.statistics;

import org.ainlolcat.ainscience.entity.Entity;
import org.jdom.Element;

import javax.swing.*;
import java.util.Hashtable;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 11/5/11
 * Time: 1:29 AM
 * This Interface describe class of entity which getData statistics from Entity.
 * Statistics can be simple as integral or complicated as interpolation
 * Note: You better prepare your solution for both case - with and without params
 */
public interface StatisticHandler {
    public JPanel getRenderer();
    public Hashtable<String,String> getStatistic(Entity entity, Integer columnID);
    public Hashtable<String,String> getStatistic(Entity entity, Integer columnID, Element params);
}
